<admintpl file="header"/>
<body class="J_scroll_fixed">
<div class="wrap jj">

  <admintpl file="nav"/>
  <div class="common-form">
    <form method="post" class="J_ajaxForm" action="{:U('Member/handleEdit')}">
      <div class="h_a">基本属性</div>
      <div class="table_list">
        <table cellpadding="0" cellspacing="0" class="table_form" width="100%">
<style>
.input {
  width: 200px;
}
</style>
          <tbody>
            <input type="hidden" name="uid" value="{$info.id}"/>
            <tr>
              <td>uid:</td>
              <td>{$info.id}</td>
            </tr>
            <tr>
              <td>账号:</td>
              <td>{$info.account}</td>
            </tr>
            <tr>
              <td>姓名:</td>
              <td><input type="text" class="input" name="name" value="{$info.name}"></td>
            </tr>

            <tr>
              <td>新密码:</td>
              <td><input type="password" class="input" name="new_pwd" value=""></td>
            </tr>
            <tr>
              <td>确认密码:</td>
              <td><input type="password" class="input" name="repeat_pwd" value="" ></td>
            </tr>
            
            <tr>
              <td>邮箱:</td>
              <td><input type="text" class="input" name="email" value="{$info.email}"></td>
            </tr>  
                      
            <tr>
              <td>联系号码:</td>
              <td><input type="text" class="input" name="phone" value="{$info.phone}" disabled></td>
            </tr>
<!--             <tr>
              <td>性别:</td>
              <td>
                <input type="radio" name="sex" value="男" <if condition="$info['sex'] == '男'">checked</if>/>
                 男 &nbsp;
                <input type="radio" name="sex" value="女" <if condition="$info['sex'] == '女'">checked</if>/>
                 女 &nbsp;
                <input type="radio" name="sex" value="保密'" <if condition="$info['sex'] == '保密'">checked</if>/>
                 保密 
              </td>
            </tr> -->
            <tr>
              <td>注册时间:</td>
              <td>{$info.reg_time|date="Y-m-d H:i:s",###}</td>
            </tr>
            <tr>
              <td>注册IP:</td>
              <td>{$info.reg_ip}</td>
            </tr>
            <tr>
              <td>最后登陆时间:</td>
              <td>{$info.last_login_time|date="Y-m-d H:i:s",###}</td>
            </tr>
            <tr>
              <td>最后登陆IP:</td>
              <td>{$info.last_login_ip}</td>
            </tr>

            <tr>
              <td>账号状态:</td>
              <td>
                <input type="radio" name="status" value="1" <if condition="$info['status'] == '1'">checked</if>/>
                 正常 &nbsp;
                <input type="radio" name="status" value="-1" <if condition="$info['status'] == '-1'">checked</if>/>
                <span style="color:red">锁定</span> &nbsp;
              </td>
            </tr>

<!--             <tr>
              <td>操作:</td>
              <td><a class="btn btn-danger" href="javascript:void(0);" url="{:U('Member/delete',array('id'=>$info['id']))}" id="del_btn">删除该账号</a></td>
            </tr> -->

          </tbody>
        </table>
      </div>
      <div class="btn_wrap">
        <div class="btn_wrap_pd">
        	
          	<button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">更新</button>
            <a class="btn" href="__URL__">返回</a>
        </div>
      </div>
    </form>
  </div>
</div>
<script src="__ROOT__/statics/js/common.js{$js_debug}"></script>
<script>
$('#del_btn').click(function(event) {
  if(!confirm('确定要删除该账号吗？')){
    return false;
  }else{
    window.location.href = $(this).attr('url');
  }
});
</script>
</body>
</html>